tests: Run all tests through a randomized readdir()
authorColin Walters <walters@verbum.org>
Tue, 2 Jun 2015 02:34:14 +0000 (22:34 -0400)
committerColin Walters <walters@verbum.org>
Tue, 2 Jun 2015 02:34:14 +0000 (22:34 -0400)
commitce49264157f9005e664557613cbbf67f54174682
treeeac7ea5a9c41828a2912fb14f148c2c6a89d277a
parent20bf7692a9a1a4777ebf9bc423945afcd9b2bae5
tests: Run all tests through a randomized readdir()

Having undefined ordering (but in practice rarely changing)
ordering for `readdir()` ended up screwing us over with respect
to bootloader config file read ordering.

Let's make things significantly more likely to fail more quickly in
the future if similar bugs are introduced.  We accomplish this by
introducing a little `LD_PRELOAD` library that randomizes the results
of `readdir()`.
Makefile-tests.am
tests/libtest.sh
tests/readdir-rand.c [new file with mode: 0644]